<?php
error_reporting(0);
// http://www.ixdcw.net/_tools/other/shua/shua.php?time=1&num=50&id=27
echo ('shua.php?time=1&num=50&id=27');
if ($_REQUEST['num']) {
	$num = intval($_REQUEST['num']);
} else {
	exit('请输入次数');
}

if ($_REQUEST['time']) {
	$time = intval($_REQUEST['time']);
} else {
	exit('请输入轮询时间');
}


if ($_REQUEST['id']) {
	$id = intval($_REQUEST['id']);
} else {
	exit('请输入ID');
}


if ($_REQUEST['all']) {
	$all = intval($_REQUEST['all']);
} else {
	$all = 0;
}

$url = 'http://go.sohu.com/2013/wanjiale/tp.php?id='.$id;
for($i = 0; $i< $num; $i++) {
	file_get_contents($url);
}
$all += $num;
echo '<meta http-equiv="refresh" content="'.$time.'; url='.$_SERVER['PHP_SELF'].'?time='.$time.'&num='.$num.'&id='.$id.'&all='.$all.'" />';
echo '<pre style="font-size:300px;">';
echo $all;